package cn.gok.dao;

import cn.gok.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author: 鸭鸭
 * @ClassName:UserMapper
 * @Package:cn.gok.dao
 * @Description:
 * @date: 2021/8/4
 * @time: 9:35
 */
public interface UserMapper {
    User userLogin(String username, String password);

    String selectByUserName(String username);

    void userRegister(User user);

    String checkVaild(Map map);

    User selectAllByName(String username);

    int updatePasswordByAnswer(String password,String username);

    int updatePasswordLogin(@Param("passwordNew")String passwordNew, @Param("passwordOld")String passwordOld, @Param("username") String username);

    int updateByPrimaryKeySelective(User user);

    List<User> queryAllUser();

    int userCount();


}
